home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter4
/
MyJavaApp.java
< prev
next >
Wrap
Text File
|
1995-12-31
|
356b
|
25 lines
//
// Java Primer Plus
// Paul Tyma
//
// Chapter 4
//
import java.applet.Applet;
import java.awt.Graphics;
public class MyJavaApp extends Applet {
public void init()
{
resize(120,100);
}
public void paint(Graphics g)
{
// put something on the screen
g.drawString("My Java Applet",10,20);
g.fillRect(10,40,110,50);
}
}